<?php
	foreach($posts as $post){
?>			
<div class="item">
	<div class="pic">
		<a href="#">
			<img src="/dorimeme/app/webroot/img/usericon/<?php echo $username ?>.jpg" />						
		</a>
	</div><!--End pic-->
	<div class="item-content">
		<div class="operation">
			<a class="note-btn" href="/dorimeme/responses/get/<?php echo $post['Post']['id'] ?>"><?php echo $post['Post']['response_count'] ?> notes</a>
			<a class="delete" href="#">delete</a>
			<a class="edit" href="/dorimeme/posts/update/<?php echo $post['Post']['id'] ?>">edit</a>
		</div><!--End operation-->
		<p class="author">
			<a href="/dorimeme/blogs/index/<?php echo $post['Post']['blogs_id'] ?>"><?php echo $username ?>:</a>
		</p><!--End author-->
		<div class="text-content">
			<?php echo $post['Post']['excerpt'] ?>
		</div><!--End text-content-->
		<p class="tag">
			<?php
				foreach($post['Post']['tags'] as $tag){
					echo '<a href="#">#'.$tag['name'].'</a>';
				}
			?>
		</p>
		<div class="clear"></div>
		<div class="noteOuter">
			<ol class="note">
			</ol>
			<div class="noteOperationOuter">
				<div class="status" sytle="display:none">Loading...</div>
				<div class="hideLink">
					<a class="hide" href="#">
						Hide notes
					</a>
				</div>
			</div><!-- End noteOperationOuter -->
		</div><!-- End noteOuter -->
	</div><!--End item-content-->
	<div class="clear"></div>
</div><!--End item-->
<?php		
	}
?>
